<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
	xmlns:marc="http://www.loc.gov/MARC21/slim" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	exclude-result-prefixes="marc" >

<xsl:output method="html" indent="yes" encoding="UTF-8" omit-xml-declaration="yes" />

<xsl:template match="/">
	<html xmlns="http://www.w3.org/TR/REC-html40">
		<xsl:apply-templates/>
	</html>
</xsl:template>
	
<xsl:template match="marc:record">
	<table>
		<tr>
			<th NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="TOP">000</th>
			<td>
				<xsl:value-of select="marc:leader"/>
			</td>
		</tr>
		<xsl:apply-templates select="marc:datafield|marc:controlfield"/>
	</table>
</xsl:template>
	
<xsl:template match="marc:controlfield">
	<tr>
		<th NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="TOP">
			<xsl:value-of select="@tag"/>
		</th>
		<td>
			<xsl:value-of select="."/>
		</td>
	</tr>
</xsl:template>
	
<xsl:template match="marc:datafield">
	<tr>
		<th NOWRAP="TRUE" ALIGN="RIGHT" VALIGN="TOP">
			<xsl:value-of select="@tag"/>
		</th>
		<td>
			<xsl:value-of select="@ind1"/>
			<xsl:value-of select="@ind2"/>
			<xsl:apply-templates select="marc:subfield"/>
		</td>
	</tr>
</xsl:template>
	
<xsl:template match="marc:subfield">
	<strong>|<xsl:value-of select="@code"/></strong> <xsl:value-of select="."/>
</xsl:template>

</xsl:stylesheet>

<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp.
<metaInformation>
<scenarios ><scenario default="no" name="Ray Charles" userelativepaths="yes" externalpreview="no" url="..\xml\MARC21slim\raycharles.xml" htmlbaseurl="" outputurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/><scenario default="yes" name="s7" userelativepaths="yes" externalpreview="no" url="..\ifla\sally7.xml" htmlbaseurl="" outputurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/></scenarios><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
</metaInformation>
-->